import request from '@/utils/request';
import type { LoginParams, LoginResult, ApiResponse } from '@/types/api';

export const login = (data: LoginParams) => {
  return request.post<ApiResponse<LoginResult>>('/user/login', data);
};

export const getUserInfo = () => {
  return request.get<ApiResponse>('/user/info');
};

// 其他接口... 